package com.settlement.system.mapper;

import com.settlement.system.model.entity.common.TblBillResponsibleReason;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 损失原因/责任方/单据状态对应表 Mapper 接口
 * @author xiaochuan
 * @since 2020-06-11
 */
public interface TblBillResponsibleReasonMapper extends BaseMapper {

    /**
     * getBillNo
     * @param str
     * @return
     * @throws Exception
     */
    Integer getBillNo(@Param("str") String str) throws Exception;

    /**
     * getResponsibleReason
     * @param params
     * @return
     */
    List<TblBillResponsibleReason> getResponsibleReason(@Param("params") Map<String,Object> params);

    /**
     * selectMainAndDtlByParam
     * @param params
     * @return
     */
    List<TblBillResponsibleReason> selectMainAndDtlByParam(@Param("params") Map<String, Object> params);

    /**
     * 获取损失原因
     * @param params
     * @return
     */
    List<TblBillResponsibleReason> getResponsibleReasonByParam(@Param("params") Map<String, Object> params);
}

